home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15784 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.7 KB  |  44 lines

  1. Path: new-news.sprintlink.net!snet!CT1!personalvision!jmartin
  2. From: jmartin@personalvision (Jonathan Martin)
  3. Newsgroups: gnu.g++.help,comp.lang.c++
  4. Subject: Re: [Q] I'm having a problem linking this simple one...
  5. Followup-To: gnu.g++.help,comp.lang.c++
  6. Date: 8 Apr 1996 01:31:24 GMT
  7. Organization: Southern New England Telephone
  8. Message-ID: <4k9q9c$2en0@CT1.SNET.Net>
  9. References: <4k9eqe$fl9@arl-news-svc-5.compuserve.com>
  10. NNTP-Posting-Host: 204.60.5.42
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Philippe Verdy (100105.3120@compuserve.com) wrote:
  14. : jmartin@personalvision (Jonathan Martin) s'Θcrit :
  15. [[ Deletia ]] 
  16. : May be -lg++ is not enough to find your library.
  17. : You may also need to use the -L/usr/g++/lib or other
  18. : to specify where to search for libraries.
  19. : Beware also of what kind of library you use.
  20. : Don't you link with dynamic link libraries and only have a
  21. : static library for Curses ? if so, add a binding option
  22. : before the -lg++ (e.g. -dy or -dn with Sun linker).
  23. : Did you compile the Curses library with the same version
  24. : of the compiler ? if not, may be the mangling rules differ
  25. : from your library to your compiler.
  26. : Do you use the correct set of libraries (for other versions
  27. : of g++ for example). Check your environment variables...
  28. : Do you use the right version of g++ ? Try "g++ -v"...
  29.  
  30. : Hope this will help.
  31.  
  32. See, this is where my lack of knowledge kicks in.  I though I had a grasp 
  33. on how the compiler/linker worked with static or dynamic bindings, but maybe 
  34. I'm missing something..
  35. (2 hrs. later)
  36. Just checked - CursesW is in libg++.a, but not libg++.so.  I tries static 
  37. with worse errors: it's not linking in curses.
  38.  
  39. And I thought all I'd need is an O'reily book!
  40.  
  41. Thanks for your help
  42. -John
  43.  
  44.